<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<h:panelGrid columns="3" id="newShopPanel">
		<f:facet name="header">  
          New Shop
        </f:facet>
		<h:outputLabel value="Name*:  " />
		<p:inputText validator="#{shopsBean.validateName}" id="shop_name_str"  label="Name*: "
			value="#{shopsBean.newShop.name}" />
		<p:message for="shop_name_str" display="text" />


		<h:outputLabel value="Web Site:  " />
		<p:inputText id="shop_webSite_str"  label="Web Site: "
			value="#{shopsBean.newShop.webSite}" />
		<p:message for="shop_webSite_str" display="text" />

		<h:outputLabel value="Description:  " />
		<p:inputTextarea id="desc" rows="5" cols="50" counter="counter"
			maxlength="512" counterTemplate="{0} characters remaining."
			autoResize="false" value="#{shopsBean.newShop.description}" />
		<p:message for="desc" display="text" />

		<h:outputLabel value="  " />
		<h:outputText id="counter" />
		<f:facet name="footer">
			<p:commandButton value="Save" update="newShopPanel"
				action="#{shopsBean.saveNewShop}" />
			<p:commandButton value="Cancel" action="#{shopsBean.hideDialog}"
				immediate="true" />
		</f:facet>

	</h:panelGrid>
</h:body>
</html>